# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo03
# Description:
# Author:       98745
# Date:         2019/3/10
#-------------------------------------------------------------------------------

from numpy import *
a=array([[1,2,3],[4,5,6],[7,8,9]])
print(a[0,0])
print('a[0,1]={},a[2,1]={}'.format(a[0,1],a[2,1]))
print(a[0:1])
print('------')
print(a[0:1][0])
print(a[0:2])
b=a[0:]
print(a)
print(b)
print(a[0::2])
print(a[-3:-1])
